package T4_create_Runnable;

public class Create_Runnable {
	public static void main(String[] args) {
		new Thread(new MyThread("lang1")).start();
		new Thread(new MyThread("lang2")).start();
		
	}
}

class MyThread implements Runnable {    
    private String name;    
    public MyThread(String name) {    
        this.name = name;    
    }    
    public void run() {    
        for (int i = 0; i < 5; i++) { 
            System.out.println(name + ": " + i);    
        }    
    }    
} 

